import request from '@/utils/request'

// 查询列表
export function listRefundment(query) {
  return request({
    url: '/yanjing/refundment/list',
    method: 'get',
    params: query
  })
}

export function queryPageByParam(query) {
  return request({
    url: '/yanjing/refundment/queryPageByParam',
    method: 'get',
    params: query
  })
}


// 审核退单
export function handleRefund(data) {
  return request({
    url: '/yanjing/refundment/handleRefund',
    method: 'post',
    data: data
  })
}

// 查询详细
export function getRefundment(refundmentId) {
  return request({
    url: '/yanjing/refundment/' + refundmentId,
    method: 'get'
  })
}

// 新增
export function addRefundment(data) {
  return request({
    url: '/yanjing/refundment',
    method: 'post',
    data: data
  })
}

// 修改
export function updateRefundment(data) {
  return request({
    url: '/yanjing/refundment',
    method: 'put',
    data: data
  })
}

// 删除
export function delRefundment(refundmentId) {
  return request({
    url: '/yanjing/refundment/' + refundmentId,
    method: 'delete'
  })
}
